<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
    <span class="color_red">*</span>成果完成人员名单（此表涉及到的知识产权问题由填报单位负责）
</div>
<table id="eq_table2" style="text-align:center;">
    <col style="width: 5%" />
    <col style="width: 5%" />
    <col style="width: 8%" />
    <col style="width: 6%" />
    <col style="width: 12%" />
    <col style="width: 8%" />
    <col style="width: 14%" />
    <col style="width: 6%" />
    <col style="width: 16%" />
    <col style="width: 20%" />
    <thead>
        <tr>
            <th class="TblHead">选择</th>
            <th class="TblHead">序号</th>
            <th class="TblHead">姓名</th>
            <th class="TblHead">性别</th>
            <th class="TblHead">出生年月</th>
            <th class="TblHead">技术职称</th>
            <th class="TblHead">文化程度</th>
            <th class="TblHead">是否留学归国</th>
            <th class="TblHead">工作单位</th>
            <th class="TblHead">对成果创造性贡献</th>
        </tr>
    </thead>
    <tbody id="tab">
        <tr style="display: none;">
            <td>
                <input type="radio" style="border: 0px; background-color: white;"
                    class="radiobutton" name="selMileStones">
            </td>
            <td>
                <span name="completion_psns|completion_psn[0]@seq_no">[index]</span>
            </td>
            <td>
                <input name="completion_psns|completion_psn[0]|name" style="width: 80%" label="姓名"
                    class="required" value="" maxlength="40" />
            </td>
            <td>
                <cpt:select id="gender_[index]" name="completion_psns|completion_psn[0]|gender"
                    key="gender" className="input_css required"
                    onChange="initControlValue(this.id);" style="width:80%" label="性别"></cpt:select>
                <input type="hidden" name="completion_psns|completion_psn[0]|gender_value" value="" />
                <input type="hidden" name="completion_psns|completion_psn[0]|gender_name" value="" />
            </td>
            <td>
                <cpt:date id="birthday_date[0]"
                    name="completion_psns|completion_psn[0]|birthday_date" value=""
                    className="required date beforeToday" label="出生年月" size="7"></cpt:date>
            </td>
            <td>
                <cpt:select id="technical_titles_[index]"
                    name="completion_psns|completion_psn[0]|technical_titles" key="technical_titles"
                    className="input_css required" onChange="initControlValue(this.id);"
                    style="width:80%" label="技术职称"></cpt:select>
                <input type="hidden" name="completion_psns|completion_psn[0]|technical_titles_value"
                    value="" />
                <input type="hidden" name="completion_psns|completion_psn[0]|technical_titles_name"
                    value="" />
            </td>
            <td>
                <cpt:select id="degree_[index]" name="completion_psns|completion_psn[0]|degree"
                    key="degree1" className="input_css required"
                    onChange="initControlValue(this.id);" style="width:80%" label="文化程度"></cpt:select>
                <input type="hidden" name="completion_psns|completion_psn[0]|degree_value" value="" />
                <input type="hidden" name="completion_psns|completion_psn[0]|degree_name" value="" />
            </td>
            <td>
                <cpt:select id="is_sea_turtle_[index]" name="completion_psns|completion_psn[0]|is_sea_turtle"
                    key="boolean" className="input_css required"
                    onChange="initControlValue(this.id);" style="width:80%" label="是否留学归国"></cpt:select>
                <input type="hidden" name="completion_psns|completion_psn[0]|is_sea_turtle_value" value="" />
                <input type="hidden" name="completion_psns|completion_psn[0]|is_sea_turtle_name" value="" />
            </td>
            <td>
                <input name="completion_psns|completion_psn[0]|work_unit" style="width: 80%"
                    label="工作单位" class="required" value="" maxlength="50" />
            </td>
            <td>
                <input name="completion_psns|completion_psn[0]|contribution" style="width: 80%"
                    label="对成果创造性贡献" class="required" value="" maxlength="100" />
            </td>
        </tr>

        <c:set value="0" var="index" scope="page" />
        <x:forEach select="$xmlData/data/completion_psns/completion_psn" var="completion_psn">
            <c:choose>
                <c:when test="${index<10}">
                    <c:set value="0" var="flag" scope="page" />
                </c:when>
                <c:otherwise>
                    <c:set value="" var="flag" scope="page" />
                </c:otherwise>
            </c:choose>
            <tr>
                <td>
                    <input type="radio" style="border: 0px; background-color: white;"
                        class="radiobutton" name="selMileStones">
                </td>
                <td>
                    <span name="completion_psns/completion_psn[${flag}${index}]@seq_no"><x:out
                            select="$completion_psn/@seq_no" /></span>
                </td>
                <td>
                    <input name="completion_psns/completion_psn[${flag}${index}]/name"
                        style="width: 80%" label="姓名" class="required"
                        value="<x:out select="$completion_psn/name" />" maxlength="40" />
                </td>
                <td>
                    <c:set var="gender">
                        <x:out select="$completion_psn/gender_value" />
                    </c:set>
                    <cpt:select id="gender_${index }" key="gender" className="input_css required"
                        name="gender" onChange="initControlValue(this.id);" value="${gender }"
                        style="width:80%;" label="性别"></cpt:select>
                    <input type="hidden"
                        name="completion_psns/completion_psn[${flag}${index}]/gender_value"
                        value="${gender }" />
                    <input type="hidden"
                        name="completion_psns/completion_psn[${flag}${index}]/gender_name"
                        value="<x:out select="$completion_psn/gender_name" />" />
                </td>
                <td>
                    <c:set var="birthday_date">
                        <x:out select="$completion_psn/birthday_date" />
                    </c:set>
                    <cpt:date id="birthday_date${index }"
                        name="completion_psns/completion_psn[${flag}${index}]/birthday_date"
                        value="${birthday_date }" className="required date beforeToday" label="出生年月"
                        size="7"></cpt:date>
                </td>
                <td>
                    <c:set var="technical_titles">
                        <x:out select="$completion_psn/technical_titles_value" />
                    </c:set>
                    <cpt:select id="technical_titles_${index }" key="technical_titles"
                        className="input_css required" name="technical_titles"
                        onChange="initControlValue(this.id);" value="${technical_titles }"
                        style="width:80%;" label="技术职称"></cpt:select>
                    <input type="hidden"
                        name="completion_psns/completion_psn[${flag}${index}]/technical_titles_value"
                        value="${technical_titles }" />
                    <input type="hidden"
                        name="completion_psns/completion_psn[${flag}${index}]/technical_titles_name"
                        value="<x:out select="$completion_psn/technical_titles_name" />" />
                </td>
                <td>
                    <c:set var="degree">
                        <x:out select="$completion_psn/degree_value" />
                    </c:set>
                    <cpt:select id="degree_${index }" key="degree1" className="input_css required"
                        name="degree" onChange="initControlValue(this.id);" value="${degree }"
                        style="width:80%;" label="文化程度"></cpt:select>
                    <input type="hidden"
                        name="completion_psns/completion_psn[${flag}${index}]/degree_value"
                        value="${degree }" />
                    <input type="hidden"
                        name="completion_psns/completion_psn[${flag}${index}]/degree_name"
                        value="<x:out select="$completion_psn/degree_name" />" />
                </td>
                <td>
                    <c:set var="is_sea_turtle">
                        <x:out select="$completion_psn/is_sea_turtle_value" />
                    </c:set>
                    <cpt:select id="is_sea_turtle_${index }" key="boolean" className="input_css required"
                        name="is_sea_turtle" onChange="initControlValue(this.id);" value="${is_sea_turtle }"
                        style="width:80%;" label="是否留学归国"></cpt:select>
                    <input type="hidden"
                        name="completion_psns/completion_psn[${flag}${index}]/is_sea_turtle_value"
                        value="${is_sea_turtle }" />
                    <input type="hidden"
                        name="completion_psns/completion_psn[${flag}${index}]/is_sea_turtle_name"
                        value="<x:out select="$completion_psn/is_sea_turtle_name" />" />
                </td>
                <td>
                    <input name="completion_psns/completion_psn[${flag}${index}]/work_unit"
                        style="width: 80%" label="工作单位" class="required"
                        value="<x:out select="$completion_psn/work_unit" />" maxlength="50" />
                </td>
                <td>
                    <input name="completion_psns/completion_psn[${flag}${index}]/contribution"
                        style="width: 80%" label="对成果创造性贡献" class="required"
                        value="<x:out select="$completion_psn/contribution" />" maxlength="100" />
                </td>
            </tr>
            <c:set value="${index+1}" var="index" scope="page" />
        </x:forEach>
    </tbody>
</table>

<table width="98%" class="tab_btn">
    <tr>
        <td>
            <input class="button_02" name="cmdAddbefore" type=button value="添加"
                onclick="if(checkTabLimit('eq_table2',999,'成果完成人员名单内容最多只能填写999条')){addNewRow('eq_table2');showDateTag('eq_table2');}try{top.resizeFrame();}catch(e){};">
            <input class="button_02" name="cmdMovePrev" type=button value="上移"
                onclick="movePrev('eq_table2','selMileStones');">
            <input class="button_02" name="cmdMoveNext" type=button value="下移"
                onclick="moveNext('eq_table2','selMileStones');">
            <input class="button_02" name="cmddel" type=button value="删除"
                onclick="deleteSelectedRow('eq_table2','成果完成人员名单');">
        </td>
    </tr>
</table>